/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.inventory.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 资产管理Entity
 * @author johnKee
 * @version 2016-07-20
 */
public class ZlmtHostsCabinet extends DataEntity<ZlmtHostsCabinet> {
	
	private static final long serialVersionUID = 1L;
	private String hostid;		// 主机id
	private String cabinetId;		// 机柜id
	private Date fromTime;		// 开始时间
	private Date thruTime;		// 结束时间
	private String hostLocCode;		// 主机在机架上的编号
	private String unitUsed;		// 占用几U
	private String unitUsedCode;		// 占用机柜格编号
	
	public ZlmtHostsCabinet() {
		super();
	}

	public ZlmtHostsCabinet(String id){
		super(id);
	}

	@Length(min=0, max=64, message="主机id长度必须介于 0 和 64 之间")
	public String getHostid() {
		return hostid;
	}

	public void setHostid(String hostid) {
		this.hostid = hostid;
	}
	
	@Length(min=0, max=64, message="机柜id长度必须介于 0 和 64 之间")
	public String getCabinetId() {
		return cabinetId;
	}

	public void setCabinetId(String cabinetId) {
		this.cabinetId = cabinetId;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getFromTime() {
		return fromTime;
	}

	public void setFromTime(Date fromTime) {
		this.fromTime = fromTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getThruTime() {
		return thruTime;
	}

	public void setThruTime(Date thruTime) {
		this.thruTime = thruTime;
	}
	
	@Length(min=0, max=2, message="主机在机架上的编号长度必须介于 0 和 2 之间")
	public String getHostLocCode() {
		return hostLocCode;
	}

	public void setHostLocCode(String hostLocCode) {
		this.hostLocCode = hostLocCode;
	}
	
	@Length(min=0, max=1, message="占用几U长度必须介于 0 和 1 之间")
	public String getUnitUsed() {
		return unitUsed;
	}

	public void setUnitUsed(String unitUsed) {
		this.unitUsed = unitUsed;
	}
	
	@Length(min=0, max=2, message="占用机柜格编号长度必须介于 0 和 2 之间")
	public String getUnitUsedCode() {
		return unitUsedCode;
	}

	public void setUnitUsedCode(String unitUsedCode) {
		this.unitUsedCode = unitUsedCode;
	}
	
}